home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-04-18 | 2.0 KB | 63 lines | [04] ASCII Text (0x0000) |
- ;------------------------------------------------------------------------------
- ;
- ; Copy and extended value from one variable to another
- ;
- ; ExtendEq SrcLoc,DestLoc - Copies 10 bytes from srcloc to DestLoc
- ;
- ;------------------------------------------------------------------------------
- MACRO
- &Lab ExtendEq &SrcLoc,&DestLoc
- &Lab lda &SrcLoc
- sta &DestLoc
- lda &SrcLoc+2
- sta &DestLoc+2
- lda &SrcLoc+4
- sta &DestLoc+4
- lda &SrcLoc+6
- sta &DestLoc+6
- lda &SrcLoc+8
- sta &DestLoc+8
- MEND
-
- ;-----------------------------------------------------------------------------
- ;
- ; Push a long space on the stack for fuction results
- ;
- ; LongResult
- ;
- ;-----------------------------------------------------------------------------
- MACRO
- &Lab LongResult
- &Lab pha
- pha
- MEnd
-
- ;-----------------------------------------------------------------------------
- ;
- ; Store 0's into an Extended number
- ;
- ; STZEXT Dest - Stores 10 bytes of 0 into Dest
- ;
- ;------------------------------------------------------------------------------
- MACRO
- &Lab STZEXT &Dest
- &Lab stz &Dest
- stz &Dest+2
- stz &Dest+4
- stz &Dest+6
- stz &Dest+8
- MEND
-
- ;------------------------------------------------------------------------------
- ;
- ; Store 0's into a longword
- ;
- ; STZL Dest - stores 4 bytes of 0 into Dest
- ;
- ;------------------------------------------------------------------------------
- MACRO
- &Lab STZL &Dest
- &Lab stz &Dest
- stz &Dest+2
- MEND
-